package com.kaifamiao.demo.d0809.ex;

public class Demo05 {

    public static void main(String[] args) {
        a();
    }


    public static void a(){
            b();
            throw new ArithmeticException("a");
    }

    public static void b(){
            c();
            throw new IndexOutOfBoundsException("b");
    }

    public static void c(){
            d();
            throw new NullPointerException("c");
    }

    public static void d(){
        throw new RuntimeException("d");
    }

}
